package com.xpp.controller;

import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    @GetMapping("/add")
    public String add(){
        return "hehe";
    }
    @GetMapping("/update")
    @Secured({"ROLE_sale","manager"})
    public String update(){
        return "hello update";
    }
}
